package com.buyingtickets.entity;

/**
 * @author Hexz
 * @date 2021/6/23 23:11
 */
public class Ticket {
    private int ticketId;//车票ID
    private Order order;//订单对象
    private Passenger passenger;//乘客对象
    private Seat seat;//座位对象
    private Type ticketType;//车票状态类型
    private int price;//火车票价
    private Carriage carriage;

    @Override
    public String toString() {
        return "Ticket{" +
                "ticketId=" + ticketId +
                ", order=" + order +
                ", passenger=" + passenger +
                ", seat=" + seat +
                ", ticketType=" + ticketType +
                ", price=" + price +
                ", carriage=" + carriage +
                '}';
    }

    public Carriage getCarriage() {
        return carriage;
    }

    public void setCarriage(Carriage carriage) {
        this.carriage = carriage;
    }

    public int getTicketId() {
        return ticketId;
    }

    public void setTicketId(int ticketId) {
        this.ticketId = ticketId;
    }

    public Order getOrder() {
        return order;
    }

    public void setOrder(Order order) {
        this.order = order;
    }

    public Passenger getPassenger() {
        return passenger;
    }

    public void setPassenger(Passenger passenger) {
        this.passenger = passenger;
    }

    public Seat getSeat() {
        return seat;
    }

    public void setSeat(Seat seat) {
        this.seat = seat;
    }

    public Type getTicketType() {
        return ticketType;
    }

    public void setTicketType(Type ticketType) {
        this.ticketType = ticketType;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }
}
